package cn.springcloud.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * @Author gc
 * @Date 2019/12/9 18:05  周一
 * @Description
 *
 * @EnableConfigServer：只需要一个注解即开启了配置服务的管理
 * @SpringBootApplication：查看源码相当于@Configuration、@EnableAutoConfiguration、@ComponentScan三个注解
 *
 * 将配置文件暴露给 eureka 服务者方便读取
 */
@EnableConfigServer
@SpringBootApplication
@EnableDiscoveryClient
public class ConfigApplication {
    public static void main( String[] args ){
        SpringApplication.run(ConfigApplication.class, args);
        System.err.println("ConfigApplication --> 启动成功");
    }

}
